package com.frx.extra.compare;

import java.util.Comparator;

/**
 * Created by xurenfeng on 2019/2/16.
 */
public class StudentComparator implements Comparator<Student>{
    @Override
    public int compare(Student o1, Student o2) {
        return o1.getAge() - o2.getAge();
    }
}
